//a+b问题
const fs = require('fs');
function readSyncByfs(tips) {
    let response;
    tips = tips || '> ';
    process.stdout.write(tips);
    process.stdin.pause();
    response = fs.readSync(process.stdin.fd, 1000, 0, 'utf8');
    process.stdin.end();
    return response[0].trim();
} 

let a=readSyncByfs('请输入a的值：');
let b=readSyncByfs('请输入b的值：');
console.log(parseInt(a)+parseInt(b));
